/**
 * 
 */
package com.unsanctioned.radioagregator.ui;

import org.json.JSONObject;

import android.R;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.LayoutInflater;
import android.view.View;
import android.webkit.WebView;

/**
 * @author wizard
 *
 */
public class DetailDialog extends AlertDialog.Builder{
	public static final String DOGTAG = DetailDialog.class.getSimpleName();
	private Context context;
	private JSONObject message;
	private UiInterface uiInterface;
	
	public DetailDialog(Context context, JSONObject message, UiInterface uiInterface) {
		super(context);
		// TODO Auto-generated constructor stub
		this.context = context;
		this.message = message;
		this.uiInterface = uiInterface;
		this.setCancelable(false);
		this.setMessage("Some messages");
		
		View view = LayoutInflater.from(context).inflate(R.layout.activity_list_item, null);
		this.setView(view);
		try {
			String contentType = message.getString("Type");
			JSONObject content = message.getJSONObject("Content");
			if (contentType == "Podcast") {
			} else {	
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		final UiInterface finUiInterface = DetailDialog.this.uiInterface;
		this.setPositiveButton("Dismiss", new DialogInterface.OnClickListener() {
			
			@Override
			public void onClick(DialogInterface dialog, int which) {
				// TODO Auto-generated method stub
				dialog.dismiss();
			}
		});
	}
}
